﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BangGia.aspx.cs" Inherits="SacMauVN.BangGia"
    MasterPageFile="~/Site1.Master" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">
    <div class="view-product resetall">
        <h3 class="h3-product">
            Bảng giá</h3>
        <div class="clear" style="padding-top: 40px;">
        </div>
        <asp:GridView ID="grvBangGia" runat="server" AutoGenerateColumns="False" AllowPaging="True"
            OnPageIndexChanging="grvBangGia_PageIndexChanging" PageSize="5" CellPadding="4"
            ForeColor="#333333" GridLines="None">
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <Columns>
                <asp:BoundField DataField="Ma" HeaderText="Mã sản phẩm" />
                <asp:TemplateField HeaderText="Ảnh sản phẩm">
                    <ItemTemplate>
                        <img src='<%#Eval("Image") %>' alt='<%#Eval("Ten") %>' width="80px" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Ten" HeaderText="Tên sản phẩm" />
                <asp:BoundField DataField="Hang" HeaderText="Hãng sản xuất" />
                <asp:BoundField DataField="GiaTien" DataFormatString="{0:###,###}" HeaderText="Giá bán" />
            </Columns>
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <PagerSettings Mode="NumericFirstLast" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
    </div>
</asp:Content>
